Repository navigation
fix(mcpx): conformance guard accepts CAP-11 empty extensions declaration - #2675
Conversation
code#2653: TestMessagesClient/messages-resulttype-extension-values failed deterministically on clean main. The guard treated the mere presence of the extensions capability key as a violation. Register CAP-11 (#1918) deliberately declares an EMPTY extensions map on modern connections only -- it names no extension, so the client owes no extension ResultType values. Scope the guard to a non-empty map (named extensions), with the CAP-11 exception named in a comment. Full conformance package passes.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #2653.
What
The client-side conformance guard for
messages-resulttype-extension-values(2026-07-28) failed on any presence of theextensionscapability key. That side was stale: register CAP-11 (#1918) deliberately declares an emptyextensionsmap on modern connections only — it names no extension, so the client owes no extensionResultTypevalues. Declaring a named-but-unimplemented extension is the actual violation the guard exists for.Change (test only,
pkgs/mcpx/internal/conformance/messages_test.go)extensionsmap is non-empty (named extensions).Proof
go test ./internal/conformance/ -run TestMessagesClient -count=1— okgo test ./internal/conformance/ -count=1(full package) — ok, 92s, no rows regressedNeed help on this PR? Tag
@codesmith-botwith what you need.